//
// Copyright (c) 2019-2023 BPer
//

#ifndef SRC_BPERMETAPLAYER_H_
#define SRC_BPERMETAPLAYER_H_

#include <bperplayer/BPerPlayerHandle.h>
#include <bperstream/BPerStreamType.h>

#include <bperutil/BPerAvInfoType.h>
#include <bperutil/sys/BPerSysMessageI.h>
class BPerMetaplayer:public BPerSysMessageI {
public:
	BPerMetaplayer();
	virtual ~BPerMetaplayer();
	BPerContext* m_context;
	uint8_t* m_buffer;
	uint8_t* m_rgbaBuffer;
	BPerPlayerHandle *m_player;
	BPerStreamConfig m_conf;
	BPerFrame m_frame;
	int32_t m_srcWidth,m_dstWidth;
	int32_t m_srcHeight,m_dstHeight;
	
	void success();
	void failure(int32_t errcode);
	void playRtc(char* url);
	void close();
	void setSize(int32_t width,int32_t height);
protected:
	
private:
	bool m_isStartplay;
	


};

#endif /* SRC_BPERMETAPLAYER_H_ */
